package com.prototype.client.managed.ui;

import com.google.gwt.requestfactory.ui.client.ProxyRenderer;
import com.prototype.client.managed.request.GroupERPProxy;

public class GroupERPProxyRenderer extends ProxyRenderer<GroupERPProxy> {

    private static com.prototype.client.managed.ui.GroupERPProxyRenderer INSTANCE;

    protected GroupERPProxyRenderer() {
        super(new String[] { "groupName" });
    }

    public static com.prototype.client.managed.ui.GroupERPProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new GroupERPProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(GroupERPProxy object) {
        if (object == null) {
            return "";
        }
        return object.getGroupName() + " (" + object.getId() + ")";
    }
}
